# This is a BitKeeper generated patch for the following project: # Project Name: Linux kernel tree # This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas: # ChangeSet 1.1003.38.2+1.1003.39.2 -> 1.1003.38.3 # arch/ia64/kernel/setup.c 1.14 -> 1.15 # arch/ia64/kernel/acpi.c 1.22 -> 1.23 # arch/ia64/config.in 1.22 -> 1.23 # arch/ia64/hp/common/sba_iommu.c 1.13 -> 1.14 # arch/ia64/ia32/sys_ia32.c 1.21 -> 1.22 # arch/ia64/hp/zx1/hpzx1_misc.c 1.1.1.4 -> 1.6 # diff -Nru a/arch/ia64/config.in b/arch/ia64/config.in --- a/arch/ia64/config.in Wed Oct 8 09:05:50 2003 +++ b/arch/ia64/config.in Wed Oct 8 09:05:50 2003 @@ -112,6 +112,7 @@ fi fi +bool 'Use PAL_HALT_LIGHT in idle loop' CONFIG_IA64_PAL_IDLE bool 'SMP support' CONFIG_SMP tristate 'Support running of Linux/x86 binaries' CONFIG_IA32_SUPPORT bool 'Performance monitor support' CONFIG_PERFMON diff -Nru a/arch/ia64/hp/common/sba_iommu.c b/arch/ia64/hp/common/sba_iommu.c --- a/arch/ia64/hp/common/sba_iommu.c Wed Oct 8 09:05:50 2003 +++ b/arch/ia64/hp/common/sba_iommu.c Wed Oct 8 09:05:50 2003 @@ -1897,22 +1897,26 @@ struct ioc *ioc; acpi_status status; u64 hpa, length; - acpi_device_info dev_info; + struct acpi_buffer buffer; + struct acpi_device_info *dev_info; status = acpi_hp_csr_space(device->handle, &hpa, &length); if (ACPI_FAILURE(status)) return 1; - status = acpi_get_object_info(device->handle, &dev_info); + buffer.length = ACPI_ALLOCATE_LOCAL_BUFFER; + status = acpi_get_object_info(device->handle, &buffer); if (ACPI_FAILURE(status)) return 1; + dev_info = buffer.pointer; /* * For HWP0001, only SBA appears in ACPI namespace. It encloses the PCI * root bridges, and its CSR space includes the IOC function. */ - if (strncmp("HWP0001", dev_info.hardware_id, 7) == 0) + if (strncmp("HWP0001", dev_info->hardware_id.value, 7) == 0) hpa += ZX1_IOC_OFFSET; + ACPI_MEM_FREE(dev_info); ioc = ioc_init(hpa, device->handle); if (!ioc) diff -Nru a/arch/ia64/ia32/sys_ia32.c b/arch/ia64/ia32/sys_ia32.c --- a/arch/ia64/ia32/sys_ia32.c Wed Oct 8 09:05:50 2003 +++ b/arch/ia64/ia32/sys_ia32.c Wed Oct 8 09:05:50 2003 @@ -38,6 +38,7 @@ #include #include #include +#include #include #include #include @@ -2147,7 +2148,6 @@ #define SEMOP 1 #define SEMGET 2 #define SEMCTL 3 -#define SEMTIMEDOP 4 #define MSGSND 11 #define MSGRCV 12 #define MSGGET 13 @@ -2579,17 +2579,6 @@ return err; } -static long -semtimedop32(int semid, struct sembuf *tsems, int nsems, - const struct timespec32 *timeout32) -{ - struct timespec t; - if (get_user (t.tv_sec, &timeout32->tv_sec) || - get_user (t.tv_nsec, &timeout32->tv_nsec)) - return -EFAULT; - return sys_semtimedop(semid, tsems, nsems, &t); -} - asmlinkage long sys32_ipc (u32 call, int first, int second, int third, u32 ptr, u32 fifth) { @@ -2601,11 +2590,7 @@ switch (call) { case SEMOP: /* struct sembuf is the same on 32 and 64bit :)) */ - return sys_semtimedop(first, (struct sembuf *)AA(ptr), second, - NULL); - case SEMTIMEDOP: - return semtimedop32(first, (struct sembuf *)AA(ptr), second, - (const struct timespec32 *)AA(fifth)); + return sys_semop(first, (struct sembuf *)AA(ptr), second); case SEMGET: return sys_semget(first, second, third); case SEMCTL: diff -Nru a/arch/ia64/kernel/acpi.c b/arch/ia64/kernel/acpi.c --- a/arch/ia64/kernel/acpi.c Wed Oct 8 09:05:50 2003 +++ b/arch/ia64/kernel/acpi.c Wed Oct 8 09:05:50 2003 @@ -59,6 +59,8 @@ unsigned char acpi_kbd_controller_present = 1; +int acpi_disabled __initdata; /* XXX this shouldn't be needed---we can't boot without ACPI! */ + const char * acpi_get_sysname (void) { @@ -123,17 +125,17 @@ }; acpi_status -acpi_vendor_resource_match(acpi_resource *resource, void *context) +acpi_vendor_resource_match (struct acpi_resource *resource, void *context) { struct acpi_vendor_info *info = (struct acpi_vendor_info *) context; - acpi_resource_vendor *vendor; + struct acpi_resource_vendor *vendor; struct acpi_vendor_descriptor *descriptor; u32 length; if (resource->id != ACPI_RSTYPE_VENDOR) return AE_OK; - vendor = (acpi_resource_vendor *) &resource->data; + vendor = (struct acpi_resource_vendor *) &resource->data; descriptor = (struct acpi_vendor_descriptor *) vendor->reserved; if (vendor->length <= sizeof(*info->descriptor) || descriptor->guid_id != info->descriptor->guid_id || @@ -151,7 +153,7 @@ } acpi_status -acpi_find_vendor_resource(acpi_handle obj, struct acpi_vendor_descriptor *id, +acpi_find_vendor_resource (acpi_handle obj, struct acpi_vendor_descriptor *id, u8 **data, u32 *length) { struct acpi_vendor_info info; @@ -174,12 +176,11 @@ }; acpi_status -acpi_hp_csr_space(acpi_handle obj, u64 *csr_base, u64 *csr_length) +acpi_hp_csr_space (acpi_handle obj, u64 *csr_base, u64 *csr_length) { acpi_status status; u8 *data; u32 length; - int i; status = acpi_find_vendor_resource(obj, &hp_ccsr_descriptor, &data, &length); @@ -441,7 +442,7 @@ acpi_parse_fadt (unsigned long phys_addr, unsigned long size) { struct acpi_table_header *fadt_header; - fadt_descriptor_rev2 *fadt; + struct fadt_descriptor_rev2 *fadt; u32 sci_irq; if (!phys_addr || !size) @@ -452,7 +453,7 @@ if (fadt_header->revision != 3) return -ENODEV; /* Only deal with ACPI 2.0 FADT */ - fadt = (fadt_descriptor_rev2 *) fadt_header; + fadt = (struct fadt_descriptor_rev2 *) fadt_header; if (!(fadt->iapc_boot_arch & BAF_8042_KEYBOARD_CONTROLLER)) acpi_kbd_controller_present = 0; @@ -485,12 +486,12 @@ int __init -acpi_boot_init (char *cmdline) +acpi_boot_init (void) { int result; /* Initialize the ACPI boot-time table parser */ - result = acpi_table_init(cmdline); + result = acpi_table_init(); if (result) return result; @@ -547,7 +548,7 @@ * gets interrupts such as power and sleep buttons. If it's not * on a Legacy interrupt, it needs to be setup. */ - if (acpi_table_parse(ACPI_FACP, acpi_parse_fadt) < 1) + if (acpi_table_parse(ACPI_FADT, acpi_parse_fadt) < 1) printk(KERN_ERR PREFIX "Can't find FADT\n"); #ifdef CONFIG_SMP diff -Nru a/arch/ia64/kernel/setup.c b/arch/ia64/kernel/setup.c --- a/arch/ia64/kernel/setup.c Wed Oct 8 09:05:50 2003 +++ b/arch/ia64/kernel/setup.c Wed Oct 8 09:05:50 2003 @@ -355,7 +355,7 @@ cpu_init(); /* initialize the bootstrap CPU */ #ifdef CONFIG_ACPI_BOOT - acpi_boot_init(*cmdline_p); + acpi_boot_init(); #endif #ifdef CONFIG_SERIAL_HCDP if (efi.hcdp) {